package com.Txunda.fxw.ui.http;

import com.Txunda.fxw.base.web.ApiListener;
import com.Txunda.fxw.base.web.ApiTool;
import com.Txunda.fxw.ui.toolkit.config.Config;
import com.lidroid.xutils.http.RequestParams;

public class Syb {
	/**
	 * ��ҵ������ҳ
	 * 
	 * @param apiListener
	 */
	public void index(ApiListener apiListener) {
		RequestParams params = new RequestParams();
		ApiTool apiTool = new ApiTool();
		apiTool.getApi(Config.BASE_URL + "Syb/index", params, apiListener);
	}

	/**
	 * ��ҵ�����б�����
	 */
	public void servicePlatform(String city_id, String from, ApiListener apiListener) {
		RequestParams params = new RequestParams();
		ApiTool apiTool = new ApiTool();
		params.addQueryStringParameter("city_id", city_id);
		params.addQueryStringParameter("class", from);
		apiTool.getApi(Config.BASE_URL + "Syb/servicePlatform", params, apiListener);

	}
	/**
	 * ��ҵ������Ϣ
	 */
	public void sybInfo(String syb_id, ApiListener apiListener) {
		RequestParams params = new RequestParams();
		ApiTool apiTool = new ApiTool();
		params.addQueryStringParameter("syb_id", syb_id);
		apiTool.getApi(Config.BASE_URL + "Syb/sybInfo", params, apiListener);

	}
	/**
	 * ��������
	 * 
	 * @param apiListener
	 */
	public void summary(String class_id, ApiListener apiListener) {
		RequestParams params = new RequestParams();
		ApiTool apiTool = new ApiTool();
		params.addQueryStringParameter("class_id", class_id);
		apiTool.getApi(Config.BASE_URL + "Syb/summary", params, apiListener);

	}
	/**
	 * �м�����
	 * 
	 * @param class_id
	 * @param province_id
	 * @param apiListener
	 */
	public void summaryCity(String class_id, String province_id, ApiListener apiListener) {
		RequestParams params = new RequestParams();
		ApiTool apiTool = new ApiTool();
		params.addQueryStringParameter("class_id", class_id);
		params.addQueryStringParameter("province_id", province_id);
		apiTool.getApi(Config.BASE_URL + "Syb/summaryCity", params, apiListener);
	}

	public void summaryDistrict(String class_id, String city_id, ApiListener apiListener) {
		RequestParams params = new RequestParams();
		ApiTool apiTool = new ApiTool();
		params.addQueryStringParameter("class_id", class_id);
		params.addQueryStringParameter("city_id", city_id);
		apiTool.getApi(Config.BASE_URL + "Syb/summaryDistrict", params, apiListener);
	}

}
